﻿
@{
    ViewBag.Title = "ParList";
}
@using YouWei.Infrastructure.Entity;
@using YouWei.Utility;
@model  List<UserInfo>

@if (Model.Count <= 0)
{
    <div class="no-data" id="nodata">
        <div class="img-box"></div>
        <div class="text">暂无数据</div>
    </div>
}
else
{
    <table class="table table-bordered table-hover body-table-head">
        <thead>
            <tr>
                <th>
                    用户名称
                </th>
                <th>
                    电话
                </th>
                <th>
                    微信号
                </th>
                <th>
                    公司
                </th>
                <th>
                    职位
                </th>
                <th>
                    邮箱
                </th>
                <th>
                    OpenID
                </th>
                <th>
                    创建时间
                </th>
                <th class="t_c">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
            <tr>
                <td class="title">@item.UserName</td>
                <td>@item.Mobile</td>
                <td>@item.WeChartNum</td>
                <td>@item.CompanyName</td>
                <td>@item.Position</td>
                <td>@item.Email</td>
                <td>@item.OpenID</td>
                <td>@item.CreateDate.ToString("yyyy-MM-dd HH:mm")</td>
                <td>
                    <button type="button" class="btn btn-info btn-xs" onclick="detail('@item.UserID')">详情</button>
                </td>
            </tr>
            }
        </tbody>
    </table>
    <input type="hidden" id="total" value="@ViewBag.Total" />
}





